package com.leanin.form.mapper;

import com.leanin.form.model.LeaninEduFormAdvice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface LeaninEduFormAdviceMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LeaninEduFormAdvice record);

    int insertSelective(LeaninEduFormAdvice record);

    LeaninEduFormAdvice selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LeaninEduFormAdvice record);

    int updateByPrimaryKey(LeaninEduFormAdvice record);

    void insertList(@Param("params") List<LeaninEduFormAdvice> params);

    List<LeaninEduFormAdvice> findByFormId(@Param("formId") Long formId);

    void deleteByFormId(@Param("formId") Long formId);
}